//
//  ContactRequestLogic.h
//  AAIM
//
//  Created by awh on 2019/12/10.
//  Copyright © 2019年 AAIM. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ContactRequestLogic : NSObject
//添加好友（搜索）
+(void)requestSearchFriendResultsWithfuuid:(NSString*)fuuid Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//首页搜索好友
+(void)requestSearchFriendQueryWithQuery:(NSString*)query Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//联系人列表
+(void)requestFriendListWithPage:(NSString*)Page Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//删除好友
+(void)requestDeleteFriendWithFuuid:(NSString*)Fuuid Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//好友备注，描述，拉黑/移除好友
+(void)requestJoinBlackListFriendWithFuuid:(NSString*)fuuid withBlock:(NSString *)block withDescribe:(NSString *)describe withRemark:(NSString*)remark Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//黑名单列表
+(void)requestBlackListSuccess:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;

//获取通讯录好友和上传通讯录
+(void)uploadAddressBookWith:(NSString*)phoneList Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;

//好友同意操作
+(void)requestAgreedFriendWithID:(NSString*)ID isAgree:(NSString*)isAgree Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//新的好友列表
+(void)requestNewFriendsListSuccess:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//好友申请
+(void)requestAddFriendWithContent:(NSString*)content fuuid:(NSString*)fuuid groupid:(NSString*)groupid source:(NSString*)source  Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//举报用户和群
+(void)reportUserOrGroupWithContent:(NSString*)content withFuuid:(NSString *)fuuid withImgUrl:(NSString *)url groupid:(NSString*)groupId Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
#pragma mark -Group
//成员申请
+(void)requestGroupAuthListWithGroupid:(NSString*)groupid Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//共同群组
+(void)requestCommonGroupWithFuuid:(NSString*)fuuid Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//创建群组  isSelect 是否搜索；0否；1是
+(void)requestCreateGroupWithGroupName:(NSString*)GroupName isSelect:(NSString*)isSelect Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//会话邀请好友创建群聊
+(void)requestInviteFriendsCreateGroupWithGroupName:(NSString*)GroupName withInviteFuuids:(NSString *)fuuids isSelect:(NSString*)isSelect Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;

//删除群成员   joinGroupIds 入群id(joinId),多个以 ，拼接
+(void)requestDeleteGroupMembersWithGroupid:(NSString*)groupid joinGroupIds:(NSString*)joinGroupIds Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//群组
+(void)requestGetGroupsListSuccess:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//群主审核  isPass类型：1、通过；2、拒绝；
+(void)requestGroupsManagerAuditWithisPass:(NSString*)isPass withUserFuuid:(NSString *)fuuid joinGroupId:(NSString*)joinGroupId  Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//群组设置展示
+(void)requestShowGroupSetWithGroupid:(NSString*)groupid Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;

//群设置保存
// groupId群id || GroupCode群口令 || groupName群名字 || groupNotice群公告 || groupQr群二维码 || isAdd否允许任何人加群0不允许 || isChat是否禁言：0禁言；1不禁言 ||isDis是否免打扰 0否 || isGroupadd允许互加好友：0不允许；1可以 || isGroupmember展示群成员；0不允许；1可以 || isPrivatechat禁止私聊：0不允许；1可以 || isSelect是否推荐搜索 0否 1是 || isStick是否置顶 0否
+(void)requestSaveGroupSetWithGroupId:(NSString*)groupId GroupCode:(NSString*)groupCode groupName:(NSString*)groupName groupNotice:(NSString*)groupNotice groupQr:(NSString*)groupQr  isAdd:(NSString*)isAdd isChat:(NSString*)isChat isDis:(NSString*)isDis isGroupadd:(NSString*)isGroupadd isGroupmember:(NSString*)isGroupmember isPrivatechat:(NSString*)isPrivatechat isSelect:(NSString*)isSelect isStick:(NSString*)isStick Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;

//好友推荐/二维码/口令进群 加群  ==
//类型：1、好友推荐（默认）groupId,fuuid；2.口令（二维码） groupCode;3、群搜索

//reason 理由 groupCode口令  fuuids用户注册号组合 例 1,2
+(void)requestJoinGroupSetWithGroupId:(NSString*)groupId GroupCode:(NSString*)groupCode fuuids:(NSString*)fuuids reason:(NSString*)reason type:(NSString*)type Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;

//群昵称搜索
+(void)requestSearchGroupNameWithQuery:(NSString*)query Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//群二维码跳转
+(void)requestGroupCodePUshWithGroupCode:(NSString*)fuuid Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;

//群昵称查询
+(void)requestCheckGroupNameWithGroupID:(NSString*)groupID Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;

//查询群成员 query查询内容
+(void)requestGroupqueryMembersWithgroupId:(NSString*)groupId Query:(NSString*)query page:(NSString*)page Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//退出群聊
+(void)requestQuitGroupWithGroupid:(NSString*)groupid Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
//公众号昵称搜索
+(void)requestSearchPublicNameWithQuery:(NSString*)query Success:(void (^)(NSDictionary *Dict))success failure:(void (^)(NSString* errMsg))failure;
@end

NS_ASSUME_NONNULL_END
